package cn.aylog;

import cn.aylog.dao.IMoneyDao;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Demo {



    @Test
    public void run() {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:application.xml");
        IMoneyDao bean = context.getBean(IMoneyDao.class);
        System.out.println(bean.getById(1));
    }
}
